package com.heima.apis.comment;

import com.heima.model.article.dtos.ArticleCommonDto;
import com.heima.model.comment.dtos.*;
import com.heima.model.comment.vos.WmCommentListVo;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.apache.ibatis.annotations.Delete;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author JianKang
 * @create 2023-11-06 15:07
 */
@FeignClient("leadnews-comment")
public interface ICommentClient {
    @DeleteMapping("/api/v1/comment/manage/del_comment/{commentId}")
    ResponseResult delComment(@PathVariable String commentId);

    @DeleteMapping("/api/v1/comment/manage/del_comment_repay/{commentRepayId}")
    ResponseResult delCommentRepay(@PathVariable String commentRepayId);

    @PostMapping("/api/v1/comment/manage/comment_repay")
    ResponseResult commentRepay(@RequestBody CommentRepaySaveDto dto);

    @PostMapping("/api/v1/comment/manage/update_comment_status")
    ResponseResult updateCommentStatus(@RequestBody ArticleCommonDto dto);

    @PostMapping("/api/v1/comment/manage/find_news_comments")
    ResponseResult findNewsComments(@RequestBody ALLCommentListDto dto);

    @PostMapping("/api/v1/comment/manage/like")
    ResponseResult like(@RequestBody CommentLikeDto dto);


}
